package com.mybatis.annotation.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import com.mybatis.annotation.entity.Blog;

public interface BlogMapper {
	
	@Select("select * from t_blog where id=#{id}")
	Blog findBlogById(int id);
	
	@Select("select * from t_blog")
	List<Blog> selectAllBlog();

}
